package com.helen.entity;

/**
 * Created by yang on 2018/5/23.
 */

public class SelectSpecEntity {

    /**
     * code : 0
     * msg : 获取成功
     * id : 1
     * price : 10.0
     * count : 1000
     */

    private int code;
    private String msg;
    private int id;
    private double price;
    private int count;
    private int myCount;
    private String img;

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public int getMyCount() {
        return myCount;
    }

    public void setMyCount(int myCount) {
        this.myCount = myCount;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getCount() {
        if (count < 1) {
            count = 1;
        }
        return count;
    }

    public void setCount(int count) {
        if (count < 1) {
            count = 1;
        }
        this.count = count;
    }
}
